<div id="bingkaiforumatas"> 
	<div id="bingkiri">
		<div id="alamat2">Schedule:</div>
		<h1 class="heading1">Today Schedule</h1>
		<div id="alamat"><?php echo $title?></div>
	</div>
	<div id="bingkanan">
	</div>
	<div class="clear"></div>
</div>
<div id="bingkaiforum">
	<div id="puma">
            <?php 
                echo $this->load->view("portal/course_nav");
            ?>
	</div>

	<div id="halaman">
	</div>
	<div class="clear"></div>
	<div>
	<table width="100%" border="0" cellpadding="0" cellspacing="0" class="scheweek2">
		<tr>
			<td id="jam" class="yup">Jam</td>
			<td id="class" class="yup">Class</td>
			<td id="ses" class="yup">Session</td>
			<td id="topic" class="yup">Topic</td>
			<td id="room" class="yup">Room</td>
			<td id="ins" class="yup">Instructor</td>
		</tr>
		<tr>
			<td class="yep"></td>
			<td class="yep"></td>
			<td class="yep"></td>
			<td class="yep"></td>
			<td class="yep"></td>
			<td class="yep"></td>
		</tr>
	<?php foreach ($courses as $row) { ?>
            <?php if (!empty($row['list_jadwal'])) { ?>
                <?php foreach ($row['list_jadwal'] as $jadwal) {?>
                    <tr>
                    <td><?php echo $jadwal['jam_mulai']; ?>-<?php echo $jadwal['jam_selesai']; ?></td>
			<td><a href="<?php echo base_url(); ?>schedule/schedule_con/detail/<?php echo $jadwal['kode_pelatihan']."/".$jadwal['angkatan']; ?>" class="wal2"><?php echo $jadwal['kode_pelatihan']."-".$jadwal['angkatan']; ?></a></td>
			<td>Sesi <?php echo $jadwal['nomor_sesi']; ?></td>
			<td><?php echo $jadwal['judul_sesi']; ?></td>
			<td><?php echo $row['nama_ruangan'] ?>  </td>
			<td>
                        <?php 
                        for($i=0;$i<count($jadwal['list_pengajar']);$i++){
                            echo $jadwal['list_pengajar'][$i]['nama'];
                            if($i+1!=(count($jadwal['list_pengajar'])))
                                echo ', ';                            
                        }
                        ?>
                </td>
                    </tr>
                <?php } ?>
            <?php }?>

	<?php }?>
                
	</table>

	</div>
</div>
